package com.sen.patterns.creational.factory.ex5;

/**
 * 热带花园类，用于生产热带蔬菜和水果
 * 
 * @author sen
 * 
 */
public class TropicalGardener implements Gardener {

	private static TropicalGardener _INSTANCE = new TropicalGardener();

	private TropicalGardener() {

	}

	public static TropicalGardener getInstance() {
		return _INSTANCE;
	}

	/**
	 * 创建热带蔬菜产品
	 * 
	 * @param name
	 * @return
	 */
	public IVeggie createVeggie(String name) {
		return new TropicalVeggie(name);
	}

	/**
	 * 创建热带水果产品
	 * 
	 * @param name
	 * @return
	 */
	public IFruit createFruit(String name) {
		return new TropicalFruit(name);
	}

}
